package com.example.validate;

import com.example.entity.Person;
import org.springframework.batch.item.validator.ValidatingItemProcessor;
import org.springframework.batch.item.validator.ValidationException;

/**
 * @description
 * @author: ruanchengzhi
 * @create: 2021-07-29 19:59
 **/
public class BatchValidate extends ValidatingItemProcessor<Person> {

    @Override
    public Person process(Person item) throws ValidationException {
        super.process(item);
        return item;
    }
}
